﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace ERP.Team.ProductionSystem
{
    /// <summary>
    /// 供应商实体类，对应数据库中的 Supplier 表
    /// </summary>
    public class Supplier : Entity<int>// 供应商主键，自增ID
    {
        /// <summary>
        /// 供应商编码，唯一标识供应商的字符串
        /// </summary>
        [Required]
        [MaxLength(30)]
        public string SupplierCode { get; set; }

        /// <summary>
        /// 供应商全称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string SupplierName { get; set; }

        /// <summary>
        /// 供应商等级（如：A级、B级、C级）
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string SupplierGrade { get; set; }

        /// <summary>
        /// 供应商评分（0-100分）
        /// </summary>
        public int? SupplierScore { get; set; }

        /// <summary>
        /// 供应商联系电话
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string SupplierPhone { get; set; }

        /// <summary>
        /// 供应商启用状态（1=启用，0=禁用）
        /// </summary>
        public int? IsNo { get; set; }

        /// <summary>
        /// 供应商地址
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string SupplierAdress { get; set; }

        /// <summary>
        /// 供应商备注信息
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Context { get; set; }
    }
}
